package com.gxa.order.mapper;

import com.gxa.order.pojo.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Auth WK
 * @DATE 2022/10/7 14:54
 * @DESCRIBE
 */
@Repository
public interface ServiceOrderMapper {

    int addHouseProperty(HouseProperty houseProperty);

    int addCleanOrder(CleanOrder cleanOrder);

    int findCountOfHouseProperty(@Param("userId")Integer userId, @Param("statusDel")Integer statusDel);
    List<Map> findHousePropertyList(@Param("userId")Integer userId,@Param("statusDel")Integer statusDel);

    List<Map> findCleanOrderAll(@Param("userId")Integer userId);
    int findCountOfCleanOrder(@Param("userId")Integer userId);

    List<Map> findCleanOrder1(@Param("userId")Integer userId,@Param("status")Integer status);
    int findCountOfCleanOrder1(@Param("userId")Integer userId,@Param("status")Integer status);


    Map findCleanOrder5(@Param("cleanOrderId")Integer cleanOrderId);


    int delCleanOrder(@Param("cleanOrderId")Integer cleanOrderId, @Param("statusFour")Integer statusFour);

    int updateCleanOrderStatus(@Param("cleanOrderId")Integer cleanOrderId, @Param("scheduleStatus")Integer scheduleStatus);

    List<EmployeeTask> findEmployeeTaskList(@Param("cleanOrderId")Integer cleanOrderId);

    int updateEmployeeTaskStatus(@Param("employeeTaskId")Integer employeeTaskId, @Param("status")Integer status);

    int addEmployeeTask(EmployeeTask employeeTask);

    int delEmployeeTask(@Param("employeeTaskId")Integer employeeTaskId, @Param("statusFour")Integer statusFour);

    EmployeeTask findEmployeeTask(@Param("employeeTaskId")Integer employeeTaskId);

    HouseProperty findHousePropertyDetails(@Param("housePropertyId")Integer housePropertyId, @Param("statusDel")Integer statusDel);

    List<Executor> findExecutorList();

    List<OrderService> findOrderServiceList1();

    List<RoomArea> findRoomAreaList1(@Param("orderServiceId")Integer orderServiceId);

    int findOrderIdByNumber(@Param("cleanOrderNumber")String cleanOrderNumber);

    int updateOrderPayTime(CleanOrder cleanOrder);
}
